//注册窗口
import javax.swing.*;
public class Client_zc extends JFrame{
    JLabel label1;      //标签 账号
    JLabel label2;      //标签 密码
    JLabel label3;      //标签 确认密码
    JButton button1;    //按钮 注册
    JButton button2;    //按钮 返回
    JTextField text1;   //账号 文本框
    JTextField text2;   //密码 文本框
    JTextField text3;   //确认密码 文本框
    Client_zc(){
        label1 = new JLabel("账号");
        label2 = new JLabel("密码");
        label3 = new JLabel("确认密码");
        text1 = new JTextField();
        text2 = new JTextField();
        text3 = new JTextField();
        button1 = new JButton("注册");
        button2 = new JButton("返回");
        label1.setBounds(50, 30, 50, 25);
        label2.setBounds(50, 60, 50, 25);
        label3.setBounds(50, 90, 60, 25);
        text1.setBounds(120, 30, 160, 25);
        text2.setBounds(120, 60, 160, 25);
        text3.setBounds(120, 90, 160, 25);
        button1.setBounds(75, 150, 80, 25);
        button2.setBounds(175, 150, 80, 25);
        setTitle("注册界面");
        setSize(350, 240);
        setLayout(null);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        add(label1);
        add(label2);
        add(label3);
        add(text1);
        add(text2);
        add(text3);
        add(button1);
        add(button2);
        button1.addActionListener(new Client_zc_button1(this));
        button2.addActionListener(new AllWinClose_button(this));
        setVisible(true);
    }
}